package xyz.xwls.bootadmin.sys.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author WZW
 * @date 2020/4/14
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class PageResult<T> {
    /**
     * 一共多少条
     */
    private Long total;
    /**
     *  一共多少页
     */
    private Integer totalPages;
    /**
     * 当前第几页
     */
    private Integer page;
    /**
     * 每页多少条
     */
    private Integer limit;
    private List<T> list;

}
